package com.atguigu.yygh.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor  //有参数构造
@NoArgsConstructor
public class YyghException extends RuntimeException {

    private Integer code;//状态码

    private String msg; //异常信息
}
